<div class="formulaire_spip formulaire_editer formulaire_#FORM">
	[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
	<BOUCLE_si_editable(CONDITION){si #ENV{editable}}>
	<form method='post' action='#ENV{action}'><div>
		#ACTION_FORMULAIRE{#ENV{action}}
		<input type='hidden' name='id_extra' value='#ENV{id_extra}' />
		<ul>
	  	#SET{fl,iextras}
	  	#SET{name,champ}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,#GET{fl}|concat{:caracteres_autorises_champ}|_T}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,obligatoire}
		#SET{disabled,#ENV{new}|non}
	    <li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<input type='text' class='text' name='#GET{name}' id='#GET{name}' value="#ENV{#GET{name}}"[ (#GET{disabled})disabled='disabled'] />
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
	    </li>
		#SET{name,table}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,''}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,obligatoire}
		#SET{disabled,#ENV{new}|non}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<select name='#GET{name}' id='#GET{name}'[ (#GET{disabled})disabled='disabled']>
					<BOUCLE_liste_objet(POUR){tableau (#VAL|cextras_objets_valides)}>
					<option value='#CLE'[ (#ENV{#GET{name}}|=={#CLE}|oui)selected='selected']>[(#VALEUR|table_valeur{nom})]</option>
					</BOUCLE_liste_objet>
				</select>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
		#SET{name,label}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,#GET{fl}|concat{:precisions_pour_label}|_T}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,obligatoire}
		#SET{disabled,''}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<input type='text' class='text' name='#GET{name}' id='#GET{name}' value="#ENV{#GET{name}}" [ (#GET{disabled})disabled='disabled']/>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
		#SET{name,precisions}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,#GET{fl}|concat{:precisions_pour_precisions}|_T}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,''}
		#SET{disabled,''}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<input type='text' class='text' name='#GET{name}' id='#GET{name}' value="#ENV{#GET{name}}" [ (#GET{disabled})disabled='disabled']/>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
		#SET{name,obligatoire}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,''}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,obligatoire}
		#SET{disabled,''}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<div class="choix">
					<input type='radio' class='radio' name='#GET{name}' id='#GET{name}_oui'[ (#ENV{#GET{name}}|oui)checked='checked'][ (#GET{disabled})disabled='disabled'] value='oui' />
					<label for="#GET{name}_oui"><:item_oui:></label>			
				</div>
				<div class="choix">
					<input type='radio' class='radio' name='#GET{name}' id='#GET{name}_non'[ (#ENV{#GET{name}}|non)checked='checked'][ (#GET{disabled})disabled='disabled'] value='' />
					<label for="#GET{name}_non"><:item_non:></label>			
				</div>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
		#SET{name,rechercher}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,#GET{fl}|concat{:precisions_pour_rechercher}|_T}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,''}
		#SET{disabled,''}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<div class="choix">
					<input type='radio' class='radio' name='#GET{name}' id='#GET{name}_oui'[ (#ENV{#GET{name}}|oui)checked='checked'][ (#GET{disabled})disabled='disabled'] value='oui' />
					<label for="#GET{name}_oui"><:item_oui:></label>			
				</div>
				<div class="choix">
					<input type='radio' class='radio' name='#GET{name}' id='#GET{name}_non'[ (#ENV{#GET{name}}|non)checked='checked'][ (#GET{disabled})disabled='disabled'] value='' />
					<label for="#GET{name}_non"><:item_non:></label>			
				</div>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
		#SET{name,type}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,#GET{fl}|concat{:precisions_pour_type}|_T}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,obligatoire}
		#SET{disabled,''}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<select name='#GET{name}' id='#GET{name}'[ (#GET{disabled})disabled='disabled']>
					<BOUCLE_liste_types(POUR){tableau (#VAL|cextras_types_formulaires)}>
					<option value='#CLE'[ (#ENV{#GET{name}}|=={#CLE}|oui)selected='selected']>[(#VALEUR|table_valeur{nom})]</option>
					</BOUCLE_liste_types>
				</select>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
		#SET{name,enum}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,#GET{fl}|concat{:precisions_pour_enum}|_T}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{obli,''}
		#SET{disabled,''}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<textarea name="#GET{name}"
					[(#GET{disabled})disabled='disabled']>
[(#ENV{#GET{name}}|sinon{',-vide-
1,valeur 1
2,valeur 2'})]</textarea>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
		#SET{name,sql}
		#SET{label,#GET{fl}|concat{':label_',#GET{name}}|_T}
		#SET{explications,''}
		#SET{obli,obligatoire}
		#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
		#SET{disabled,#ENV{new}|non}
		<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
	    	<label for="#GET{name}">#GET{label}</label>
				[<span class='erreur_message'>(#GET{erreurs})</span>]
				[<p class="explication">(#GET{explications})</p>]
				<input type='text' class='text' name='#GET{name}' id='#GET{name}' value="#ENV{#GET{name}}"[ (#GET{disabled})disabled='disabled']/>
				[(#GET{disabled}|oui)<input type='hidden' name='#GET{name}' value="#ENV{#GET{name}}" />]
		</li>
				
		</ul>
		[(#REM) ajouter les saisies supplementaires : extra et autre, a cet endroit ]
		<!--extra-->
		<p class='boutons'><input type='submit' class='submit' value='[(#ENV{new}|?{<:bouton_ajouter:>,<:bouton_modifier:>})]' /></p>
	</div></form>
	</BOUCLE_si_editable>
</div>
